﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace SeleniumToolkit.Install.Test
{
    [TestFixture]
    public class NUnitVersionFixture
    {
        [Test]
        public void CanGetNUnitVersionList()
        {
            Assert.IsNotNull(NUnitVersion.Versions);
            Assert.AreEqual(2, NUnitVersion.Versions.Count);
        }

        [Explicit("Requires NUnit 2.4.8 installed.")]
        [Test]
        public void CanGetNUnit_2_4_8_Version()
        {
            NUnitVersion version = new NUnitVersion(@"SOFTWARE\NUnit.org\NUnit\2.4.8", @"bin\addins");
            Assert.IsTrue(version.Installed);
        }
    }
}
